/**
 * author:Administrator
 * date:2016/3/29
 * desc:TODO
 */
'use strict';

class FormatError {
  constructor(code, msg) {
    this.code = code;
    this.msg = msg;
  }
}

let errors = {
  E_register_user:      new FormatError(1000, 'E_register_user'),
  E_register_customer:  new FormatError(1001, 'E_register_customer'),
  E_register_vendor:    new FormatError(1002, 'E_register_vendor'),
  E_register_manager:   new FormatError(1003, 'E_register_manager'),
  E_register_keeper:    new FormatError(1004, 'E_register_keeper'),
  E_login:              new FormatError(1005, 'E_login'),
 
  E_role_not_exist:     new FormatError(1007, 'E_role_not_exist'),

  E_location_create:    new FormatError(1009, 'E_create_location'),
  E_category_create:    new FormatError(1010, 'E_create_category'),
  E_category_query:     new FormatError(1011, 'E_category_query'),
  E_location_query:     new FormatError(1012, 'E_location_query'),
};


module.exports = errors;